package com.glory.brepda.entity.response;

import java.io.Serializable;

/**
 * FileName: ReturnBean
 * Author: XJH
 * Date: 2020/5/25 16:46
 * Description: 返回header
 * History:
 */
public class ReturnBean<T> implements Serializable {

    private ResponseHeader Header;
    private T Body;
    private ResponseReturn Return;

    public ResponseHeader getHeader() {
        return Header == null ? new ResponseHeader() : Header;
    }

    public void setHeader(ResponseHeader header) {
        Header = header;
    }

    public T getBody() {
        return Body;
    }

    public void setBody(T body) {
        Body = body;
    }

    public ResponseReturn getReturn() {
        return Return;
    }

    public void setReturn(ResponseReturn aReturn) {
        Return = aReturn;
    }

    public class ResponseReturn {
        private String ReturnCode;
        private String ReturnMessage;

        public String getReturnCode() {
            return ReturnCode == null ? "" : ReturnCode;
        }

        public String getReturnMessage() {
            return ReturnMessage == null ? "" : ReturnMessage;
        }

        public void setReturnCode(String returnCode) {
            ReturnCode = returnCode;
        }

        public void setReturnMessage(String returnMessage) {
            ReturnMessage = returnMessage;
        }
    }
}
